import java.util.HashMap;


public class NameTableImpl implements NameTable {

	private HashMap<String, NameBlock> nameBlockMap;
	
	public NameTableImpl() {
		nameBlockMap = new HashMap<String, NameBlock>();
	}
	
	@Override
	public NameBlock name2nameBlock(String name) {
		NameBlock nameBlock = name2nameBlock(name);
		if (nameBlock == null) {
			nameBlock = new NameBlock(name, new EntityBlock());
			nameBlockMap.put(name, nameBlock);
		}
		return nameBlock;
	}
}
